/*
 * Filename:    AnalyticFormulaUtil.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年10月11日
 */
package com.paic.mhis.hcpms.quota.calculationreport.calculationkpi.common.util;

import com.paic.mhis.hcpms.quota.calculationreport.calculationkpi.common.calculation.AnalyticFormula;
import com.paic.mhis.hcpms.quota.calculationreport.calculationkpi.common.vo.CalculationFormulaVo;

public class AnalyticFormulaUtil {
	public static CalculationFormulaVo createCalculationFormula(int expressionId, String visitType, String kpiCode,
			String formulaCode, String formula) {
		AnalyticFormula analytic = new AnalyticFormula();
		CalculationFormulaVo formulaVo = new CalculationFormulaVo(expressionId, visitType, kpiCode, formulaCode,
				formula);
		analytic.setCalculationFormulaVo(formulaVo);
		analytic.createFormual();
		return formulaVo;
	}

	// private static CalculationFormulaVo
	// addCalculationFormula(CalculationExpressionVo formual) {
	// CalculationFormulaVo vo = new CalculationFormulaVo();
	// vo.setExpressionId(formual.getExpressionId());
	// vo.setFormula(formual.getFormula());
	// vo.setFormulaCode(formual.getFormulaCode());
	// vo.setKpiCode(formual.getKpiCode());
	// vo.setLevel(formual.getLevel());
	// return vo;
	// }
}
